package cn.wolfcode.crm.query;

import com.alibaba.druid.util.StringUtils;
import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class EmployeeQueryObject extends QueryObject {
    private String sort;   //排序的列
    private String order;  //排序的方式
    private Long currentUserId = -1L;

    private String keyword; //关键查询


    public String getSort(){
        return StringUtils.isEmpty(sort)? null : sort;
    }
    public String getOrder(){
        return StringUtils.isEmpty(order)? "" : order; //order没值时需要为""
    }



    public String getKeyword(){
        if (StringUtils.isEmpty(keyword)){
            return null;
        }
        return  keyword;
    }
}
